StoreEngine\Classes\Coupon B

Total Complexity 96
Dependencies 10
Dependents 6
Total lines 487
Lines of code 315
Logical lines of code 150
Comment lines 67
Methods 37
Properties 9

Methods 37

Method Rating Maintainability Complexity Lines of code
check_coupon_between_start_and_end_date()
A
45 10 44
get_discount_amount()
A
51 9 25
get_date_expires()
S
53 7 23
get()
S
47 6 35
check_coupon_minimum_requirement()
S
55 6 18
get_by_code()
S
50 4 31
__construct()
S
63 6 10
validate_coupon()
S
57 4 17
check_user_can_usage()
S
67 5 6
is_valid()
S
62 4 11
calculate()
S
63 4 11
check_total_usage_limit()
S
62 4 9
is_type()
S
77 3 3
get_excluded_product_ids()
S
80 1 3
get_limit_usage_to_x_items()
S
82 1 3
get_code()
S
82 1 3
get_usage_limit_per_user()
S
82 1 3
get_usage_limit()
S
82 1 3
get_name()
S
82 1 3
get_status()
S
82 1 3
get_created()
S
82 1 3
get_created_gmt()
S
82 1 3
is_valid_for_cart()
S
79 1 3
is_valid_for_product()
S
79 1 3
get_settings()
S
82 1 3
get_product_categories()
S
80 1 3
get_used_by()
S
80 1 3
get_amount()
S
78 1 3
get_discount_type()
S
79 1 3
get_maximum_amount()
S
78 1 3
get_minimum_amount()
S
78 1 3
get_product_ids()
S
80 1 3
get_id()
S
82 1 3
get_email_restrictions()
S
79 1 3
get_exclude_sale_items()
S
79 1 3
get_excluded_product_categories()
S
80 1 3
get_free_shipping()
S
82 1 3